package com.shigui.news.service;

import java.util.List;

import com.shigui.news.model.Category;
import com.shigui.news.model.News;
import com.shigui.news.model.User;

public interface NewsService {

	News selectById(Integer newsId);
	
	List<News> select();
	
	void insert(User user,News news);
	
	void update(News news);
	
	void delete(User user,News news);
	
	
	
	List<News> getNewsList(Category category ,Integer page, Integer count);
	
	Integer getCountNews( Category category);
	
	void updateNum(News news);
}
